<template>
  <el-container>
    <el-header>
      <div class="logo">
        <img src="https://www.365gl.com/skin/images/logo.png" alt="logo" />
      </div>
      <nav-menu class="navbar" />
      <div class="search-box">
        <el-input placeholder="请输入内容" v-model="inputSearch" size="mini">
          <i slot="prefix" class="el-input__icon el-icon-search"></i>
        </el-input>
      </div>
    </el-header>
    <el-main>
      <my-full-page />
    </el-main>
  </el-container>
</template>

<script>
  import Logo from '~/components/Logo.vue'
  import NavMenu from '~/components/NavMenu.vue'
  import MyFullPage from '~/components/MyFullPage.vue'

  export default {
    components: {
      Logo,
      NavMenu,
      MyFullPage
    },
    data() {
      return {
        inputSearch: ''
      }
    }
  }
</script>

<style lang="scss" scoped>
  .el-header,
  .el-footer {
    position: relative;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  .el-footer {
    background-color: #d3dce6;
  }
  .logo {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    z-index: 1;
    img {
      padding: 2px 0;
    }
  }
  .navbar {
    padding-right: 200px;
  }
  .search-box {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
  }

  .el-aside {
    background-color: #d3dce6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  .el-main {
    color: #333;
    text-align: center;
    padding: 0;
    overflow: hidden;
  }

  .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
